package com.cn.service.server.admin.Impl;

import com.cn.bean.vo.bc.UserDepartments;
import com.cn.mapper.dao.db1.admin.UserDepartmentsDao;
import com.cn.service.server.admin.UserDepartmentsServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class UserDepartmentsServerImpl implements UserDepartmentsServer {
    private final UserDepartmentsDao userDepartmentsDao;

    @Autowired(required=false)
    public UserDepartmentsServerImpl(UserDepartmentsDao userDepartmentsDao) {
        this.userDepartmentsDao = userDepartmentsDao;
    }
    @Override
    public List<UserDepartments> departmentsList(int limit, int page, String username, String name) {
        return userDepartmentsDao.departmentsList(limit,page,username,name);
    }
}
